#include<stdio.h>
#define J 10
#define Q 10
#define K 10
int main()
{
    char a,b,c;
    int d,e,f,sum,A;
    A=11;
    printf("Please enter three brands:");
    scanf("%c %c %c",&a,&b,&c);
    d=a,e=b,f=c;
    d=d-48;
    e=e-48;
    f=f-48;
    if(d+e+f>=21)
    {A=1;
    sum=d+e+f;
    printf("\nsum:%d",sum);}
    else
    {sum=d+e+f;
    printf("\nsum:%d",sum);}
    return(0);
}